package it.iaproject;

/**
 * Cinque possibili valori: <br>
 * 1 = libero <br>
 * 2 = mario <br>
 * 3 = fiume <br>
 * 4 = ponte <br>
 * 5 = mostro <br>
 * 6 = peach
 */
public class Cell {
	
	public static final int FREE = 1;
	public static final int MARIO = 2;
	public static final int RIVER = 3;
	public static final int BRIDGE = 4;
	public static final int ENEMY = 5;
	public static final int PEACH = 6;
	public static final int WIN = 7;
	public static final int MARIOONTHEBRIDGE = 8;
	
	private int status = FREE;
	private int row;
	private int col;
	private double distance = -1;
	private double distanceFromSides = -1;
	private boolean taboo = false;
	
	public double getDistance() {
		return distance;
	}

	public void setDistance(double d) {
		this.distance = d;
	}

	public int getRow() {
		return row;
	}

	public void setRow(int row) {
		this.row = row;
	}

	public int getCol() {
		return col;
	}

	public void setCol(int col) {
		this.col = col;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	public Cell(int row, int col) {
		this.setRow(row);
		this.setCol(col);		
	}

	public double getDistanceFromSides() {
		return distanceFromSides;
	}

	public void setDistanceFromSides(double distanceFromSides) {
		this.distanceFromSides = distanceFromSides;
	}

	public boolean isTaboo() {
		return taboo;
	}

	public void setTaboo(boolean taboo) {
		System.out.println("row " + row + " col " + col + " taboooo!!!!!");
		this.taboo = taboo;
	}
}
